<?php /* Smarty version 2.6.16, created on 2011-10-22 14:37:54
         compiled from findstudent_test.tpl */ ?>
<?php echo '
<script type="text/javascript">
function redirect_function(id)
{
  document.forms["studentform"+id].submit();
}
function ManagerGeneral(url) 
{	
		var params ={
			\'IsProcess\': "Y"
			};
		//j(\'#pagination ul li:last\').after(\'<img src="images/indicator.gif" alt="Loading" title="Loading"/>\');	
		j.ajax({
				type: "POST",
				url: url,
				data: params,				
				success: function(data){
					
					//alert(data);
						
						
						j(\'#paging\').html(data);
				}
		});
}
</script>
'; ?>

<?php if ($this->_tpl_vars['IsProcess'] != 'Y'): ?>
<div id="paging"> 
<?php endif; ?>
 <div class="right-panel">
      <h1 title="Find Student"><span>Find Student</span></h1>
      <div class="clear"></div>
 

   <?php if ($this->_tpl_vars['SearchTxt'] != ''): ?><div><b>Search By</b>  <?php echo $this->_tpl_vars['SearchTxt']; ?>
</div><?php endif; ?>
	 <?php if ($this->_tpl_vars['NumStudent'] > 0): ?>
	  <?php unset($this->_sections['studentRow']);
$this->_sections['studentRow']['name'] = 'studentRow';
$this->_sections['studentRow']['loop'] = is_array($_loop=$this->_tpl_vars['StudentArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['studentRow']['show'] = true;
$this->_sections['studentRow']['max'] = $this->_sections['studentRow']['loop'];
$this->_sections['studentRow']['step'] = 1;
$this->_sections['studentRow']['start'] = $this->_sections['studentRow']['step'] > 0 ? 0 : $this->_sections['studentRow']['loop']-1;
if ($this->_sections['studentRow']['show']) {
    $this->_sections['studentRow']['total'] = $this->_sections['studentRow']['loop'];
    if ($this->_sections['studentRow']['total'] == 0)
        $this->_sections['studentRow']['show'] = false;
} else
    $this->_sections['studentRow']['total'] = 0;
if ($this->_sections['studentRow']['show']):

            for ($this->_sections['studentRow']['index'] = $this->_sections['studentRow']['start'], $this->_sections['studentRow']['iteration'] = 1;
                 $this->_sections['studentRow']['iteration'] <= $this->_sections['studentRow']['total'];
                 $this->_sections['studentRow']['index'] += $this->_sections['studentRow']['step'], $this->_sections['studentRow']['iteration']++):
$this->_sections['studentRow']['rownum'] = $this->_sections['studentRow']['iteration'];
$this->_sections['studentRow']['index_prev'] = $this->_sections['studentRow']['index'] - $this->_sections['studentRow']['step'];
$this->_sections['studentRow']['index_next'] = $this->_sections['studentRow']['index'] + $this->_sections['studentRow']['step'];
$this->_sections['studentRow']['first']      = ($this->_sections['studentRow']['iteration'] == 1);
$this->_sections['studentRow']['last']       = ($this->_sections['studentRow']['iteration'] == $this->_sections['studentRow']['total']);
?>
      <div class="game-list">
		  <div class="game-image">
		    <form name="student<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
" id="studentform<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
" method="post" 
			action="studentdetails.php?student_id=<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
">
			<input type="hidden" name="price" value="<?php echo $this->_tpl_vars['price']; ?>
" />
			<input type="hidden" name="languages" value="<?php echo $this->_tpl_vars['languages']; ?>
" />
			<input type="hidden" name="availabilitys" value="<?php echo $this->_tpl_vars['availabilitys']; ?>
" />
			<input type="hidden" name="games" value="<?php echo $this->_tpl_vars['games']; ?>
" />
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
)">
			<?php if ($this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['photo'] != ''): ?>
		     <img src="uploaded/user_images/thumbs/big_<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['photo']; ?>
" alt="<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['name']; ?>
" border="0"  />
			<?php else: ?> 
			 <img src="images/student_thumb.jpg" alt="Student" border="0" />
			<?php endif; ?>
			</a>
		  	
		  </div>
		  <div class="game-details">
            <h2><a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
)" style="text-decoration:none;"><?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['name']; ?>
</a></h2>
            <p><?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['about']; ?>
</p>
            <p class="clear"></p>
            <ul class="games-desc">
               <li><span>Language :</span> <?php if ($this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['language'] != ''):  echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['language'];  else: ?>N/A<?php endif; ?></li>
			   <li><span>Availability :</span> <?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['availability_type']; ?>
</li>
            </ul>
            <ul class="games-desc">
               <li><span>Game :</span> <?php if ($this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['game'] != ''):  echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['game']; ?>
 <?php else: ?> N/A <?php endif; ?></li>
			   <li><span>Budget :</span> <?php if ($this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['rate'] != ''): ?>$<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['rate']; ?>
 <?php else: ?> N/A <?php endif; ?></li>
            </ul>
            <div class="clear"></div>
			
            <div class="view"><!--a href="studentdetails.php?student_id=<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
">view</a-->
			<a href="#" onclick="redirect_function(<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
)">view</a>
			</div>
			</form>
         </div>
         <div class="clear"></div>
      </div>
	 <?php endfor; endif; ?> 
     <?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
	 <div class="clear"></div>
      <div class="pagin">
         <ul>
           <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

         </ul>
      </div>
	 <?php endif; ?>
	 <?php else: ?>
	    No Student is found......
     <?php endif; ?>
<?php if ($this->_tpl_vars['IsProcess'] != 'Y'): ?>
	</div> 
   </div>
 <?php endif; ?>  